<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>楼盘详情</title>
    <meta content="yes" name="apple-mobile-web-app-capable"><!-- 这meta的作用就是删除默认的苹果工具栏和菜单栏允许全屏模式浏览-->
    <meta name="apple-touch-fullscreen" content="yes"><!-- 开启对web app程序的支持  -->
    <meta content="telephone=no,email=no" name="format-detection"><!-- iPhone会自动把你这个文字加链接样式、并且点击这个数字还会自动拨号！telephone=no就忽略页面中的数字识别为电话号码 ,email=no 忽略识别邮箱 -->
    <!--base css-->
    <link rel="stylesheet" href="CSS/reset.css"/>
    <link rel="stylesheet" href="CSS/index.css"/>
    <link rel="stylesheet" href="FONT/iconfont.css"/>
    <!--base css end-->
    <!--base js-->
    <!--<meta content="yes" name="apple-mobile-web-app-capable">-->
    <script>
        window.scrollTo(0, 0);
    </script>
    <!--<meta content="yes" name="apple-mobile-web-app-capable"> end-->
    <script src="JS/reset.js"></script>
    <script src="JS/jquery.min.js"></script>
    <script src="JS/zepto.min.js"></script>
    <script src="JS/TouchSlide.js"></script>
    <script src="JS/notice.js"></script>
    <script src="JS/screen.js"></script>
    <script src="JS/back.js"></script>
    <!--base js end-->

    <!--no css-->
    <link rel="stylesheet" href="CSS/swiper.min.css"/>
    <!--no css end-->

    <!--no base js-->
    <script src="JS/swiper.min.js"></script>
    <script src="JS/click.js"></script>
    <script src="JS/clickmore.js"></script>
    <script src="JS/jiaojia.js"></script>
    <!--no base js end-->
    <!--no base css-->
    <style>
        .hto-ph3{
          line-height: 0.765625rem;
        }
        .hto-title{
            line-height: 0.796875rem;
        }
        .hto-hx{
            margin-top: 0.1rem;
        }
        .hto-hx span{
            font-size: 0.3125rem;
        }
        .page-jj .hot-content ul li{
            padding-bottom: 0.2rem;
        }
        .page-jjomre .hot-content ul li{
            padding-top: 0;
        }
        .page-shoulou .dt-nyydp{
             line-height: 0.734375rem;
            font-size: 0.375rem;
        }
        .page-shoulou .dt-you{
            min-width: 1.953125rem;
            max-width:1.953125rem;
            height: auto;
            text-align: center;
        }
        .page-shoulou .dt-you img{
            width: 1.15625rem;
            height: 1.15625rem;
        }
    </style>
    <!--no base css end-->
</head>
<body>
<!--wapper-->
<div class="wapper">
    <!--header-->
    <div class="header">
        <div class="header-list bag-1462c4">
            <div class="p-l-25 p-r-25 relative text-center f33">
                <a href="javascript:history.go(-1)" class="block"><i class="icon iconfont f-b">&#xe643;</i></a>
                <a href="{:U('Index/index')}" class="home"><i class="icon iconfont">&#xe61a;</i></a>
                <a href="javascript:;" class="text-fff">楼盘详情</a>
            </div>
        </div>
    </div>
    <!--header end-->
    <!--slide-->
    <div class="lslide">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <!-- 循环封面图 -->
                {volist name="duotu" id="data"}
                <div class="swiper-slide">
                    <a href="{:U('Index/loupan_xiangce',array('id'=>$info.id))}">
                        <img src="UPLOADS/{$data}" alt="{$data}"/>
                    </a>
                </div>
                {/volist}

               <!-- 循环封面图 END-->
            </div>
            <!-- Add Pagination -->
            <div class="swiper-pagination"></div>
            <!-- Add Arrows -->
        </div>
    </div>
    <script>
        var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            paginationType: 'fraction'
        });
    </script>
    <!--slide end-->
    <!--content-->
    <div class="content">
        <!--相关阅读-->
        <div class="dt-nyyd">
            <div class="dt-nyydul p-l-25 p-r-25">
                <a href="javascript:;">
                <!-- 关注 -->
                        <div class="dt-nyydli relative p-t-15 p-b-15 hidden">
                                <p class="dt-nyydp">{$info.name}</p>    
                                {if condition="$status eq 0"}
                                <div class='gray'> 
                                <span class="addimg" id="gray"><img src="images/xx.png"></span>
                                {else/}
                                <div class='red'> 
                                <span class="addimg" id="red"><img src="images/sx.png"></span>
                                {/if} 
                                </div>
                                <input type="hidden" id="guanzhu" value="{$_GET['id']}">
                        </div>
        <script>
            $(document).ready(function(){
                //START
                var  gz=$("#guanzhu").val();
                   $(document).delegate('.gray',"click",function(){
                   $.post("{:U('Index/get_concern')}",{guanzhu_id:gz,status:1},function(data){
                    if(data ==1){
                    $('.gray').html('<span class="addimg"><img src="images/sx.png"></span>');
                    $(".gray").attr('class','red');
                    }
                  },'json');
                      }); 


              $(document).delegate('.red',"click",function(){
               $.post("{:U('Index/get_concern')}",{guanzhu_id:gz,status:0},function(data){
                if(data == 0){
                    $('.red').html('<span class="addimg"><img src="images/xx.png"></span>');
                    $(".red").attr('class','gray');                   
                }

              },'json');
                  }); 

            //END 
                     });
        </script>                   
                <!-- 关注 END -->
                </a>
            </div>
        </div>
        <!--相关阅读-->
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <div class="page-jj p-l-25 p-r-25">
            <div class="hot-content">
                <ul class="clearFloat">
                    <a href="">
                        <li>
                            <div class="hto-img">
                                <div class="hto-p">
                                    <h3 class="hto-ph3 m-b-5 f30 text-f40000">均价{$info.junjia}</h3>
                                    <p class="hto-title clearFloat f24">开       盘:{$info.kaipan}</p>
                                    <p class="hto-title clearFloat  f24">地       址: {$info.dizhi}</p>
                                    <div class="hto-hx clearFloat">
                                        {$info.biaoqian}
                                    </div>
                                </div>
                            </div>
                        </li>
                    </a>
                </ul>
            </div>
            <div class="page-jjomre">
                <div class="hot-content">
                    <ul class="clearFloat">
                        <a href="">
                            <li>
                                <div class="hto-img">
                                    <div class="hto-p">
                                        <p class="hto-title clearFloat f24">周边学校:{$info.zbxx} </p>
                                        <p class="hto-title clearFloat  f24">入住时间: {$info.rzsj}</p>
                                        <p class="hto-title clearFloat  f24">物业类型:{$info.wylx}</p>
                                    <p class="hto-title clearFloat  f24">建筑类别: {$info.fangtype}</p>
                                        <p class="hto-title clearFloat  f24">装修状况:{$info.zxzk}</p>
                                        <p class="hto-title clearFloat  f24">住户数: {$info.zhs}</p>
                                        <p class="hto-title clearFloat  f24">容积率: {$info.rjl}</p>
                                        <p class="hto-title clearFloat  f24">绿化率: {$info.lhl}</p>
                                        <p class="hto-title clearFloat  f24">停车位: {$info.tcw}</p>
                                        <p class="hto-title clearFloat  f24">产权年限:{$info.chanquan}</p>
                                        <p class="hto-title clearFloat  f24">开发商: {$info.kfs}</p>
                                        <p class="hto-title clearFloat  f24">预售许可证: {$info.ysxkz}</p>
                                        <p class="hto-title clearFloat  f24">物业公司:{$info.wygs}</p>
                                        <p class="hto-title clearFloat  f24">物业费:{$info.wyf}</p>
                                    </div>
                                </div>
                            </li>
                        </a>
                    </ul>
                </div>
            </div>
            <div class="page-jjmoreclick b-b-e6e6e6">
                <a href="javascript:;" class="pagedown">更多详细信息 <i class="icon iconfont">&#xe629;</i></a>
                <a href="javascript:;" class="pageup">收起 <i class="icon iconfont">&#xe649;</i></a>
            </div>
            <!--page-tz-->
            <div class="page-tz clearFloat">
                <div class="page-tza">
                    <a href="javascript:;" id="jiangjia"><i class="icon iconfont">&#xe61f;</i> 降价通知 </a>
                    <a href="javascript:;" id="kaipan"><i class="icon iconfont">&#xe667;</i> 开盘通知 </a>
                </div>
               <!-- 通知 -->

           <!-- 通知弹窗 END -->
            </div>
            <!--page-tz end-->

        </div>
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <div class="page-tab p-l-25 p-r-25">
            <div class="tabs">
                <a href="#" class="active">点评 <span class="f20 text-969696">({$num})</span></a>
                <a href="#" >动态</a>
            </div>
            <div id="tabs-container" class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <div class="dp-listcon m-b-10 clearFloat">
                           
                           <!-- 循环点评 -->
                        {if condition="$new_message['id'] neq '' "}
                            <div class="dianping p-t-30 p-b-30 b-b-e6e6e6 clearFloat">
                                <div class="dp-user ex-pick">
                                    <img src="UPLOADS/member/{$m_info['headimg']}" alt="" class="dp-userimg"/>
                                    <span class="f24 text-3c3c3c p-l-5">
                                        {if condition="$m_info['uname'] neq ''"}
                                        {$m_info['uname']}
                                        {else/}
                                        {:substr_replace($m_info['phone'],'****',3,4)}
                                        {/if}
                                    </span>
                                </div>
                                <div class="dp-contetn">
                                   {$new_message.content|msubstr=0,70,"utf-8",true}
                                </div>
                                <div class="dp-time">
                                    发表于{$new_message.create_time|date='Y-m-d H:i:s',###}
                                </div>
                            </div>
                        {/if}

                         <!-- 循环点评 END-->
                        </div>
                        <div class="text-center m-b-20" style="height:1rem;">
                            <a href="{:U('Index/loupan_dianping',array('id'=>$info['id']))}" class="tab-more text-1462c4">查看更多评价</a>
                        </div>
                        

                    </div>

                    <!-- 动态 -->
                    <div class="swiper-slide">

                       <!-- 循环动态 -->
                          <div class="dt-content" style="height:4.3rem;overflow: hidden;">
                                <a href="{:U('Index/news_content',array('id'=>$new_dongtai['id']))}">
                                    <div class="dt-li p-t-30 p-b-30 b-b-e6e6e6">
                                        <h3 class="dth3">{$new_dongtai.name}</h3>
                                        <span class="dt-litime">发布时间：{$new_dongtai.create_time|date='Y-m-d',###}</span>
                                        <p class="dt-p">{$new_dongtai.description|msubstr=0,70,"utf-8",true}</p>
                                    </div>
                                </a>          

                            </div>                          
                       <!-- 循环动态 END-->

                      
                        <div class="text-center m-b-20" style="height:1rem;">
                            <a href="{:U('Index/news_list',array('nid'=>3))}" class="tab-more text-1462c4">查看更多动态</a>
                        </div>

                    </div>

                </div>
            </div>
        </div>
        <script type="text/javascript">
            $(function(){
                var tabsSwiper = new Swiper('#tabs-container',{
                    speed:500,
                    onSlideChangeStart: function(){
                        $(".tabs .active").removeClass('active')
                        $(".tabs a").eq(tabsSwiper.activeIndex).addClass('active')
                    }
                })
                $(".tabs a").on('touchstart mousedown',function(e){
                    e.preventDefault()
                    $(".tabs .active").removeClass('active')
                    $(this).addClass('active')
                    tabsSwiper.slideTo( $(this).index() )
                })
                $(".tabs a").click(function(e){
                    e.preventDefault()
                })
            })
        </script>
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <!--主力户型-->
        <div class="page-zlhx p-l-25 p-r-25">
            <!--相关阅读-->
            <div class="dt-nyyd">
                <div class="dt-nyydul">
                    <a href="{:U('Index/huxing_list',array('hxid'=>$_GET['id']))}">
                        <div class="dt-nyydli relative p-t-15 p-b-15 ">
                            <p class="dt-nyydp f26 text-3c3c3c">主力户型  <span class="f22 text-969696">（{$huxing_num}）</span></p>
                            <span class="dt-you"><img src="images/you.png" alt=""/></span>
                        </div>
                    </a>
                </div>
            </div>

            <div class="pagezlhxul m-t-20 m-b-30">
                <div class="pagezlhxul2">
                    <div class="swiper-wrapper">
                        <!-- 循环主力户型 -->
                        {volist name="zhuli_huxing" id="data"}
                        <div class="swiper-slide">
                            <a href="{:U('Index/huxing_content',array('hxid'=>$data['id'],'id'=>$_GET['id']))}">
                                <img src="UPLOADS/{$data.cover_img}" alt="{$data.name}"/>
                                <span class="f24 text-3c3c3c">{$data.name} <br>
                                    <span class="f22 text-969696">{$data.built}</span>
                                </span>
                            </a>
                        </div>
                        {/volist}

                        <!-- 循环主力户型 END-->
                        
                    </div>

                </div>
                <script>
                    var swiper = new Swiper('.pagezlhxul2', {
                        slidesPerView: 3,
                        paginationClickable: true,
                        spaceBetween: 30,
                        freeMode: true
                    });
                </script>
            </div>
        </div>
        <!--主力户型 end-->
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <!--地图-->
        <div class="page-map  p-l-25 p-r-25 m-t-20 m-b-20">
            <!--相关阅读-->
            <div class="dt-nyyd">
                <div class="dt-nyydul">
                    <a href="">
                        <div class="dt-nyydli relative p-t-15 p-b-15 ">
                            <p class="dt-nyydp f26 text-3c3c3c">地址:{$info.dizhi}</p>
                            <!--<span class="dt-you"><img src="images/you.png" alt=""/></span>-->
                        </div>
                    </a>
                </div>
            </div>
            <!--相关阅读-->
            <div class="page-mapzb m-t-20 m-b-15">
                <div id='allmap' style='width:100%;height: 4.34375rem;'></div>
                <script type='text/javascript' src='http://api.map.baidu.com/api?v=2.0&ak=56563710f7448264e407591367dc1d77'></script>
            </div>
            <!--相关阅读-->
            <div class="dt-nyyd">
                <div class="dt-nyydul">
                    <a href="#">
                        <div class="dt-nyydli relative p-t-15 p-b-15 ">
 <!--                            <p class="dt-nyydp f26 text-3c3c3c">周边配套: 地铁、公交、学校、医院、银行...</p> -->
                            <!-- <span class="dt-you"><img src="images/you.png" alt=""/></span> -->
                        </div>
                    </a>
                </div>
            </div>
            <!--相关阅读-->
        </div>
        <!--地图 end-->
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <!--售楼-->
        <div class="page-shoulou p-l-25 p-r-25 p-t-10 p-b-20">
            <!--相关阅读-->
            <div class="dt-nyyd">
                <div class="dt-nyydul">
                    <a href="">
                        <div class="dt-nyydli relative p-t-15 p-b-15">
                            <p class="dt-nyydp">售楼处：<span class="text-1462c4">{$info.shouphone}</span> </p>
                            <p class="dt-nyydp">免费咨询，了解最新动态及更多优惠信息</p>
                            <p class="dt-nyydp">售楼处工作时间&nbsp;{$info.gtime}</p>

                             <!-- 拨打次数 -->
                               <a href="tel:{$info.shouphone}">
                            <span class="dt-you dianhua">
                                <img src="images/pagsl.png" alt="" class="m-b-20"/>
                                <span class="text-1462c4 display-block">{$cishu}人已拨打</span>
                                <input type="hidden" class="cishu" value="{$info['id']}">
                            </span>
                                </a>
                                <script>
                           $(document).ready(function(){
                            var panid=$('.cishu').val();
                             $(".dianhua").click(function(){
                            $.post("{:U('Index/bodacishu')}",{panid:panid},function(data){});
                             });

                           });
                                </script>
                            <!-- 拨打次数 -->

                        </div>
                    </a>
                </div>

            </div>
            <!--相关阅读-->
        </div>
        <!--售楼 end-->
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <div class="page-guanzhu">
            <div class="page-tzag">
                <a href="{:U('Index/concern')}"><i class="icon iconfont">&#xe65f;</i> 我的关注 </a>
                <a href="{:U('Index/history')}"><i class="icon iconfont">&#xe613;</i> 历史浏览 </a>
            </div>
        </div>
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <!--猜你喜欢-->
        <div class="page-like m-b-27">
            <!--热门推荐-->
            <div class="hot p-l-25 p-r-25 p-t-27 p-b-30 clearFloat">
                <h3 class="screenh3 f28"><strong>猜你喜欢</strong></h3>
                <div class="hot-content">
                    <ul class="clearFloat">
                         <!-- 循环猜你喜欢 -->
                         {volist name="clist" id="data"}
                         <?php
                         $name['panid']=$data['id'];
                         $name['lock']=0;
                         $other=M('coupon')->where($name)->count();
                         ?>
                        <li class="b-b-e6e6e6">
                            <div class="hto-img">
                                <a href="{:U('Index/loupan_content',array('id'=>$data['id']))}">
                                    <div class="hto-img-content m-r-16">
                                        <img src="UPLOADS/{$data.upload}" alt=""/>
                                    </div>
                                </a>
                                <div class="hto-p">
                                    <a href="{:U('Index/loupan_content',array('id'=>$data['id']))}">
                                        <h3 class="hto-ph3 m-b-5 f26">{$data.name}</h3>
                                        <p class="hto-title clearFloat f20"><span class="hto-mi">{$data.junjia}</span>{$data.dizhi}</p>
                                        <p class="hto-title clearFloat  f20">户型：{$data.huxing} </p>
                                        <div class="hto-hx clearFloat">
                                            {$data.biaoqian}
                                     </div>  
                                    </a>

                            {if condition="$other neq 0"}   
                                    <a href="{:U('Index/seckill',array('id'=>$data['id']))}">
                                        <!-- line -->                                    
                                    <div class="m-t-15 m-b-15 text-e6e6e6"><div class="b-d-b-e6e6e6" ></div></div>  
                                    <!-- line end -->
                                        <div class="quan">
                                            <p class="hto-title clearFloat m-b-10 f20"><img src="images/quan.png" alt="" class="quanimg"/>一元秒杀房款券</p>
                                        </div>
                                    </a>
                            {/if}
                                </div>
                            </div>
                        </li>
                        {/volist}
                        <!-- 循环猜你喜欢END -->                       
                    </ul>
                </div>

            </div>
            <!--热门推荐 end-->
        </div>
        <!--猜你喜欢 end-->
        <!--灰-->
        <div class="hui"></div>
        <!--灰 end-->
        <!--一元秒杀-->
        {if condition="$have neq 0"}
        <div class="page-ms p-l-25 p-r-25">
            <a href="{:U('Index/seckill',array('id'=>$_GET['id']))}">
                <i class="icon iconfont">&#xe615;</i> 一元秒杀房款券
            </a>            
            <a href="{:U('Index/yueche')}"><span class="cheimg"></span> 约车看房</a>
        </div>
        {else/}
        <div class="page-ms p-l-25 p-r-25">
        <a href="{:U('Index/yueche')}" style="width:100%;"><span class="cheimg" ></span> 约车看房</a>
        </div>  
         {/if}
        <!--一元秒杀 end-->
        <!--一元秒杀-->

        <!--一元秒杀 end-->



        <!--返回顶部-->
        <a href="#" id="scrollUp" style="position: fixed; z-index: 10;">
            <i class="icon iconfont">&#xe60c;</i>
        </a>
        <!--返回顶部-->





    </div>
    <!--content end-->




</div>
<!--wapper end-->
               <!-- 通知 -->
               <!-- 降价通知 -->
                <div class="page-tztck jiangjia">
                    <div class="page-tzphone p-t-40 p-b-40">
                        <div class="page-tztitle">
                            <span>降价通知</span>
                        </div>
                       <form action="{:U('Index/add_jiangjia',array('id'=>$_GET['id']))}" class="qu" method="post">
                        <div class="page-tzinput m-l-35 m-r-35">
                            <ul>
                                <li>
                                    <input type="text" name="phone" value="" class="page-tzwidth paphone" placeholder="请输入手机号码"/>
                                </li>
                                <li class="page-tzli">
                                    <div class="page-tzinputdx">
                            <input type="text" name="yanzhengma" id="get_yan" value="" placeholder="请输入验证码" class="page-tzwidth"/>
                             <a href="javascript:;" class="page-tzhq jiangjia_tzhq">获取验证码</a>
                                    </div>
                                </li>
                            </ul>
                            <p class="page-p">降价消息会通过手机短信通知您</p>
                            <div class="page-tzsumit">
                                <input type="button" value="取消 " class="page-qx jiangjia-qx"/>
                                <div class="quei">
                                <input type="button" value="确定" class="jiangjia-queren"/>
                                 </div>
                            </div>
                        </div>
                    </form>

                    </div>
                </div>
                       <script>
                            $(document).ready(function(){

                                $(".jiangjia_tzhq").click(function(){
                                var value=$(".jiangjia_tzhq").text();
                                var tel=$(".paphone").val();
                                  if(value == "获取验证码" && tel !=""){
                             $.post("{:U('Index/notice')}",{type:1,phone:tel},function(data){});
                                      }
                                        
                                   }); 
                                //实时验证
            $('#get_yan').bind('input propertychange', function() {
                 var get_yan = $('#get_yan').val();
            var cd=$('#get_yan').val().length;
            if(cd ==6){                 
             //对比验证码，将输入的验证码发到后台验证
                $.post("{:U('Index/check_add_jiangjia')}",{type:12,yzm:get_yan},function(data){
                  if(data == 1){
                     $(".quei").html('<input type="submit" value="确定" class="jiangjia-queren page-tzsumita"/>')
                   }else{
                    $(".quei").html('<input type="button" value="确定" class="jiangjia-queren"/>')
                   }                         

                              });
                                  }

                             });
            });
                        </script>
                 <!-- 降价通知 END-->

                 <!-- 开盘通知 -->
                <div class="page-tztck kaipan">
                    <div class="page-tzphone p-t-40 p-b-40">
                        <div class="page-tztitle">
                            <span>开盘通知</span>
                        </div>
                        <form action="{:U('Index/add_kaipan',array('id'=>$_GET['id']))}" class="qu" method="post">
                        <div class="page-tzinput m-l-35 m-r-35">
                            <ul>
                                <li>
                                    <input type="text" name="phone" value="" class="page-tzwidth paphone kaipanphone" placeholder="请输入手机号码"/>
                                </li>
                                <li class="page-tzli">
                                    <div class="page-tzinputdx">
                                        <input type="text" name="yanzhengma" id="get_y" value="" placeholder="请输入验证码" class="page-tzwidth"/>
                                        <a href="javascript:;" class="page-tzhq kaima-tzhq">获取验证码</a>
                                    </div>
                                </li>
                            </ul>
                            <p class="page-p">开盘消息会通过手机短信通知您</p>
                            <div class="page-tzsumit">
                                <input type="button" value="取消 " class="page-qx kptz-qx"/>
                                <div class="quey">
                                <input type="button" value="确定" class="jiangjia-queren"/>
                                 </div>
                                <input type="hidden" value="" id="yanzh"/>
                            </div>
                        </div>
                    </form>
                    </div>
                </div>
                       <script>
                            $(document).ready(function(){
                                  $(".kaima-tzhq").click(function(){
                                var value=$(".kaima-tzhq").text();
                                var tel=$(".kaipanphone").val();
                                  if(value == "获取验证码" && tel !=""){
                                          $.post("{:U('Index/notice')}",{type:2,phone:tel},function(data){
                                          $('#yanzh').val(data);
                                          },'');
                                      }
                                        
                                   }); 
            $('#get_y').bind('input propertychange', function() {
                 var get_yan = $('#get_y').val();
            var cd=$('#get_y').val().length;
            if(cd ==6){                
             //对比验证码，将输入的验证码发到后台验证
                $.post("{:U('Index/check_add_kaipan')}",{type:12,yzm:get_yan},function(data){
                  if(data == 1){
                     $(".quey").html('<input type="submit" value="确定" class="jiangjia-queren page-tzsumita"/>')
                   }else{
                    $(".quey").html('<input type="button" value="确定" class="jiangjia-queren"/>')
                   }                        
                     });
                          }
                        });
                           });
                        </script>                
                <!-- 开盘通知 END-->
           <!-- 通知弹窗 END -->
                           <script type='text/javascript'>
                    // 百度地图API功能
                    var map = new BMap.Map('allmap');    // 创建Map实例
                    map.centerAndZoom(new BMap.Point({$info.jingdu}, {$info.weidu}), 14);  // 初始化地图,设置中心点坐标和地图级别
                    map.addControl(new BMap.MapTypeControl());   //添加地图类型控件
                    map.setCurrentCity('北京市');          // 设置地图显示的城市 此项是必须设置的
                    var top_left_control = new BMap.ScaleControl({anchor: BMAP_ANCHOR_TOP_LEFT});
                    var top_left_navigation = new BMap.NavigationControl();  //左上角，添加默认缩放平移控件
                    var top_right_navigation = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_RIGHT, type: BMAP_NAVIGATION_CONTROL_SMALL}); //右上角，仅包含平移和缩放按钮
                    /*缩放控件type有四种类型:
                     BMAP_NAVIGATION_CONTROL_SMALL：仅包含平移和缩放按钮；BMAP_NAVIGATION_CONTROL_PAN:仅包含平移按钮；BMAP_NAVIGATION_CONTROL_ZOOM：仅包含缩放按钮*/

                    map.addControl(top_left_control);
                    map.addControl(top_left_navigation);
                    //map.addControl(top_right_navigation);

                    var point = new BMap.Point({$info.jingdu}, {$info.weidu});
                    var marker = new BMap.Marker(point);  // 创建标注
                    map.addOverlay(marker);              // 将标注添加到地图中
                    map.centerAndZoom(point, 15);
                    var opts = {
                        width : 160,     // 信息窗口宽度
                        height: 45,     // 信息窗口高度
                        title : '{$info.name}' , // 信息窗口标题
                    }
                    var infoWindow = new BMap.InfoWindow('{$info.dizhi}', opts);  // 创建信息窗口对象
                    map.openInfoWindow(infoWindow,point); //开启信息窗口
                    marker.addEventListener('click', function(){
                        map.openInfoWindow(infoWindow,point); //开启信息窗口
                    });
                </script>
</body>
</html>